-module(xbt_sup).
-behaviour(supervisor).

-export([start_link/0,init/1]).

start_link() ->
    supervisor:start_link({local,?MODULE},?MODULE,[]).

init([])   ->
    S1 = {xbt_config,{xbt_config,start_link,[]},permanent,
           10000, worker, [xbt_config]},
    S2 = {xbt_dht,{xbt_dht,start_link,[]},permanent,
           10000, worker, [xbt_dht]},
    S3 = {xbt_ctl,{xbt_ctl,start_link,[]},permanent,
           10000, worker, [xbt_ctl]},
    S4 = {xbt_storage_server,{xbt_storage_server,start_link,[]},permanent,
           10000, worker, [xbt_storage_server]},
    S5 = {xbt_access_server,{xbt_access_server,start_link,[]},permanent,
           10000, worker, [xbt_access_server]},
    {ok, {{one_for_one, 3, 10},[S1,S2,S3,S4,S5]}}.

